package com.lanou3g.ptp.grade.mapper;

import com.lanou3g.ptp.entity.Grade;
import com.lanou3g.ptp.entity.GradeRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GradeRoleMapper {
    void addGradeRole(GradeRole gradeRole);

    void deleteById(Long id);

    void updateById(GradeRole gradeRole);

    List<GradeRole> findAll();

    GradeRole findById(Long id);

    List<GradeRole> findByGradeId(Long gradeId);

    List<GradeRole> findByStudentId(Long studentId);

    void deleteByGradeId(Long id);
}

